package com.ckm.util;

import java.util.Collection;

public class EmptyUtils {

    public static boolean isEmpty(Object object) {
        return object == null;
    }

    public static boolean isEmpty(String string) {
        return string == null || string.isEmpty();
    }

    public static boolean isEmpty(Object[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isEmpty(Collection<?> collection) {
        return collection == null || collection.isEmpty();
    }
}
